package shop.yaojianfeng.springlearning.section6.service;

import shop.yaojianfeng.springlearning.section6.entity.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * 简单账户表(Account)表服务接口
 *
 * @author 
 * @since 2022-04-27 16:35:23
 */
public interface AccountService {

    /**
     * 转出
     * @param param
     * @return
     */
    Account out(Account param);

    /**
     * 转入
     * @param param
     * @return
     */
    Account in(Account param);

    /**
     * 转账
     * @param outName
     * @param inName
     * @param money
     */
    void transfer(String outName, String inName, int money);
}
